const INVITE_KEY = 'TDKP-AGENT-TOKEN';
const MY_ID = 'TDKP-AGENT-MYID';
const THIRD_ID = 'TODP-AGENT-THIRD';
const FLOW_MAIN_KEY = 'FLOW-MAIN-KEY';
const INVITE_CODE = 'INVITE-CODE';
const INVITE_ID = 'INVITE-ID';

var getInviteId = function () {
    return uni.getStorageSync(INVITE_KEY) || '';
};

var setgetInviteId = function (id) {
    uni.setStorageSync(INVITE_KEY, id || 0);
};

var setMyUserId = function (id) {
    uni.setStorageSync(MY_ID, id || 0);
};

var getMyUserId = function () {
    return uni.getStorageSync(MY_ID) || 0;
};

var getThirdId = function (id) {
    return uni.getStorageSync(THIRD_ID);
};

var SetThirdId = function (id) {
    uni.setStorageSync(THIRD_ID, id);
};

var getInviteCode = function () {
    return uni.getStorageSync(INVITE_CODE);
};

var setInviteCode = function (id) {
    uni.setStorageSync(INVITE_CODE, id);
};

var get_Invite_Id = function () {
    return uni.getStorageSync(INVITE_ID);
};

var set_Invite_Id = function (id) {
    uni.setStorageSync(INVITE_ID, id);
};

export { getInviteId, setgetInviteId, setMyUserId, getMyUserId, getThirdId, SetThirdId, getInviteCode, setInviteCode, get_Invite_Id, set_Invite_Id };
